/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SunshadeCanopy {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010040036';
    }

    get categoryName() {
        return '\u906e\u9633\u68da';
    }

    getAdjustDirection(params) {
        return command({
            method: 'getAdjustDirection',
            methodId: 'pDrhJ2U1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentPosition(params) {
        return command({
            method: 'getCurrentPosition',
            methodId: 'p3delE7I',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLedBrightness(params) {
        return command({
            method: 'getLedBrightness',
            methodId: 'ptRSCYNW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLedSwitch(params) {
        return command({
            method: 'getLedSwitch',
            methodId: 'pdN7PIOz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pgh0v8Ko',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetPosition(params) {
        return command({
            method: 'getTargetPosition',
            methodId: 'p1vFcJLk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'phEqdczR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAdjustDirection(params) {
        return command({
            method: 'setAdjustDirection',
            methodId: 'ppAXwLtG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLedBrightness(params) {
        return command({
            method: 'setLedBrightness',
            methodId: 'pZgR0N4b',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLedSwitch(params) {
        return command({
            method: 'setLedSwitch',
            methodId: 'pGoxsTbq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pUPQ5SBx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetPosition(params) {
        return command({
            method: 'setTargetPosition',
            methodId: 'peH3AZi3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SunshadeCanopy;
